﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CPPEI.ETL.Domain
{
    public static class Configs
    {
        /// <summary>
        /// 站点基地址
        /// </summary>
        public static string WebBaseAddress { get; private set; }
        public static string UploadFileDirectory { get; private set; }
        public static string EMail_SmtpServer { get; private set; }
        public static string EMail_Account { get; private set; }
        public static string EMail_Password { get; private set; }

        public static void Init()
        {
            WebBaseAddress = System.Configuration.ConfigurationManager.AppSettings["WebBaseAddress"];
            UploadFileDirectory = System.Configuration.ConfigurationManager.AppSettings["UploadFileDirectory"];
            EMail_SmtpServer = System.Configuration.ConfigurationManager.AppSettings["EMail.SmtpServer"];
            EMail_Account = System.Configuration.ConfigurationManager.AppSettings["EMail.Account"];
            EMail_Password = System.Configuration.ConfigurationManager.AppSettings["EMail.Password"];
        }
    }
}
